import request from '@/utils/request'

// 查询gptRole列表
export function listGptRole(query) {
  return request({
    url: '/system/gptRole/list',
    method: 'get',
    params: query
  })
}

// 查询gptRole详细
export function getGptRole(id) {
  return request({
    url: '/system/gptRole/' + id,
    method: 'get'
  })
}

// 新增gptRole
export function addGptRole(data) {
  return request({
    url: '/system/gptRole',
    method: 'post',
    data: data
  })
}

// 修改gptRole
export function updateGptRole(data) {
  return request({
    url: '/system/gptRole',
    method: 'put',
    data: data
  })
}

// 删除gptRole
export function delGptRole(id) {
  return request({
    url: '/system/gptRole/' + id,
    method: 'delete'
  })
}
